﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Pg.BioMedics.SDR.Entities
{
    /// <summary>
    /// PlayedRole entity
    /// </summary>
    [Serializable]
    [DataContract]
    public class PlayedRole
    {
        /// <summary>
        /// Gets PlayedRole unique id
        /// </summary>
        [DataMember]
        public int? Id
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets role code
        /// </summary>
        [DataMember]
        public string RoleCode
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets person id
        /// </summary>
        [DataMember]
        public int PersonId
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets played role start date boundry
        /// </summary>
        [DataMember]
        public DateTime? StartDate
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets played role end date boundry
        /// </summary>
        [DataMember]
        public DateTime? EndDate
        {
            get;
            set;
        }

        /// <summary>
        /// Gets current status for the PlayedRole
        /// </summary>
        [DataMember]
        public string StatusCode
        {
            get;
            set;
        }

        /// <summary>
        /// Gets status of last state transition
        /// </summary>
        [DataMember]
        public DateTime? StatusDate
        {
            get;
            set;
        }
    }
}
